// 自动生成模板Car
package cars

import (
	"github.com/flipped-aurora/gin-vue-admin/server/global"
)

// car表 结构体  Car
type Car struct {
	global.GVA_MODEL
	ParkingSpaceId *int   `json:"parkingSpaceId" form:"parkingSpaceId" gorm:"column:parking_space_id;comment:车库id;"` //车库id
	IsLease        string `json:"isLease" form:"isLease" gorm:"column:is_lease;comment:车位是否租赁;size:191;"`            //车位是否租赁
	CarNumber      string `json:"carNumber" form:"carNumber" gorm:"column:car_number;comment:车牌号;size:30;"`          //车牌号
	OwnerName      string `json:"ownerName" form:"ownerName" gorm:"column:owner_name;comment:车主姓名;size:30;"`         //车主姓名
	Sex            string `json:"sex" form:"sex" gorm:"column:sex;comment:车主性别;size:191;"`                           //车主性别
	Mobile         string `json:"mobile" form:"mobile" gorm:"column:mobile;comment:联系方式;size:191;"`                  //联系方式
}

type CarRes struct {
	global.GVA_MODEL
	GarageName       string `json:"garageName"`
	ParkingSpaceName string `json:"parkingSpaceName"`
	ParkingSpaceId   *int   `json:"parkingSpaceId" form:"parkingSpaceId" gorm:"column:parking_space_id;comment:车库id;"` //车库id
	IsLease          string `json:"isLease" form:"isLease" gorm:"column:is_lease;comment:车位是否租赁;size:191;"`            //车位是否租赁
	CarNumber        string `json:"carNumber" form:"carNumber" gorm:"column:car_number;comment:车牌号;size:30;"`          //车牌号
	OwnerName        string `json:"ownerName" form:"ownerName" gorm:"column:owner_name;comment:车主姓名;size:30;"`         //车主姓名
	Sex              string `json:"sex" form:"sex" gorm:"column:sex;comment:车主性别;size:191;"`                           //车主性别
	Mobile           string `json:"mobile" form:"mobile" gorm:"column:mobile;comment:联系方式;size:191;"`                  //联系方式
}

// TableName car表 Car自定义表名 car
func (Car) TableName() string {
	return "car"
}
